package portada.server.serviciosImpl;

import java.util.List;

import net.sf.hibernate4gwt.gwt.HibernateRemoteService;

import portada.client.servicios.ServicioPost;
import portada.domain.Post;
import portada.server.serviciosBD.ServicioPostBD;

public class ServicioPostImpl extends HibernateRemoteService implements ServicioPost {

	private static final long	serialVersionUID	= 1L;

	public List getPosts() {
		ServicioPostBD servicioPostBD = new ServicioPostBD ();
		return servicioPostBD.getPosts();
	}

	public void alta(Post post) {
		ServicioPostBD servicioPostBD = new ServicioPostBD ();
		servicioPostBD.alta(post);
		
	}

	
}
